package cn.edu.scau.cmi.houzhicong.combinationPattern.consistentPattern;

import java.util.List;

public abstract class ConsistentComponent {
	
	protected ConsistentComponent parent;
	protected String name;

	public void setParent(ConsistentComponent parent) {
		this.parent = parent;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public ConsistentComponent(String name) {
		this.name = name;
	}

	public ConsistentComponent getParent() {
		return parent;
	}
	
	public abstract boolean addChild(ConsistentComponent child);
	public abstract boolean removeChild(ConsistentComponent child);
	public abstract List<ConsistentComponent> getChildren();
	public abstract String showChildren();
	public abstract String display();

}
